<?php

class ContractViewModel extends ViewModel{

    public $viewFields = array(
    	'Contract' => array('id','sinceId','Contract_Date','SignUnit_ID','Amount','ContractType_ID','Agent_ID','Entry_time','remarks'),
    	'Unit' => array('unit_Name'=>'uName','_on'=>'Contract.SignUnit_ID = Unit.id'),
    	'ContractType' => array('typeName'=>'tName','_on' => 'Contract.ContractType_ID = ContractType.id'),
    	'Agent' => array('agentName'=>'aName','_on' => 'Contract.Agent_ID = Agent.id'),
    );



}
?>